- 
		Home
	
- 
MailPoet – Newsletters, Email Marketing, and Automation
- 
4.51.2
- 
Code
- 
Classes
-  CouponPreProcessor 
		
			
				
					
													
								
																			
											| Total Complexity | 26 | 
																			
											| Dependencies | 8 | 
																			
											| Dependents | 3 | 
																	
							 
													
								
																			
											| Total lines | 163 | 
																			
											| Lines of code | 107 | 
																			
											| Logical lines of code | 58 | 
																	
							 
													
								
																			
											| Comment lines | 22 | 
																			
											| Methods | 8 | 
																			
											| Properties | 3 | 
																	
							 
											 
				 
									
							 
		 
	 
	Methods 8
	
		
		
			| Method | Rating | Maintainability | Complexity | Lines of code | 
		
		
					
				| ensureCouponForBlocks() | A | 53 | 9 | 21 | 
					
				| addOrUpdateCoupon() | S | 46 | 6 | 37 | 
					
				| processCoupons() | S | 55 | 5 | 21 | 
					
				| getItemIds() | S | 68 | 2 | 8 | 
					
				| __construct() | S | 77 | 1 | 4 | 
					
				| generateRandomCode() | S | 63 | 1 | 10 | 
					
				| shouldGenerateCoupon() | S | 79 | 1 | 3 | 
					
				| shouldPersist() | S | 79 | 1 | 3 |